﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Ecreate.Web.popedom.menuManage
{
    public partial class menuList : System.Web.UI.Page
    {
        Ecreate.Popedom.Service.IMenuService menuService = new Ecreate.Popedom.Service.SpringImpl.MenuServiceImpl();
        protected void Page_Load(object sender, EventArgs e)
        {
            GridHelper helper = new GridHelper();
            helper.CrudUrl = "/popedom/menuManage/menucrud.aspx";
            helper.setGridColumn(this.GridView1, "Id,MenuCaption,Menuurl", "主键,菜单名称,链接地址");
            this.GridView1.AutoGenerateColumns = false;
            this.GridView1.DataSource = menuService.getAll();
            this.GridView1.DataBind();
        }

    }
}
